<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb">
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_ce_01')?></cite></a>
        <a href="<?=site_url('opt/main')?>"><?=L('tpl_ce_02')?></a>
        <a href="<?=site_url('collect/add')?>"><?=L('tpl_ce_03')?></a>
    </span>
    <form class="layui-form layui-form-pane" action="<?=$savelink?>&page=4" method="post">
        <fieldset class="layui-elem-field" style="margin-top: 15px;">
            <legend><?=L('tpl_ce_36')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ce_37')?></label>
                    <div class="layui-input-inline" onclick="cscms.show_hide('html','htmlid')">
                        <input type="radio" name="htmlid" title="<?=L('tpl_ce_31')?>" value="0" checked >
                        <input type="radio" name="htmlid" title="<?=L('tpl_ce_32')?>" value="1">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text html html1" style="display: none;">
                    <label class="layui-form-label"><?=L('tpl_ce_38')?></label>
                    <div class="layui-input-block">
                      <textarea name="html" style="min-height: 300px;" class="layui-textarea"><?=str_replace('<form','&lt;form',str_replace('</textarea>','&lt;/textarea&gt;',$html))?></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label"><?=L('tpl_ce_39')?></label>
                    <div class="layui-input-block">
                        <textarea name="linkks" class="layui-textarea"><?=$linkks?></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label"><?=L('tpl_ce_40')?></label>
                    <div class="layui-input-block">
                        <textarea name="linkjs" class="layui-textarea"><?=$linkjs?></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ce_41')?></label>
                    <div class="layui-input-inline" onclick="cscms.show_hide('pic','picmode')">
                        <input type="radio" name="picmode" title="<?=L('tpl_ce_42')?>" value="0" <?php if($picmode==0) echo 'checked';?>>
                        <input type="radio" name="picmode" title="<?=L('tpl_ce_43')?>" value="1" <?php if($picmode==1) echo 'checked';?>>
                        <input type="radio" name="picmode" title="<?=L('tpl_ce_44')?>" value="2" <?php if($picmode==2) echo 'checked';?>>
                    </div>
                </div>
                <div class="pic pic1" <?php if($picmode!=1) echo ' style="display:none;"';?>>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label"><?=L('tpl_ce_45')?></label>
                        <div class="layui-input-block">
                            <textarea name="picks" class="layui-textarea"><?=$picks?></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label"><?=L('tpl_ce_46')?></label>
                        <div class="layui-input-block">
                            <textarea name="picjs" class="layui-textarea"><?=$picjs?></textarea>
                        </div>
                    </div>
                </div>
                <input type="hidden" name="cjurl" value="<?=$cjurl?>">
                <input type="hidden" name="code" value="<?=$code?>">
                <input type="hidden" name="listks" value="<?=str_encode($listks)?>">
                <input type="hidden" name="listjs" value="<?=str_encode($listjs)?>">
                <div class="layui-form-item">
                    <div class="layui-input-block noborder">
                        <button style="margin-left: 20%;" class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_ce_26')?></button>
                        <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_ce_27')?></button>
                    </div>
                </div>
                
            </div>
        </fieldset>
    </form>
    <script type="text/javascript">
        cscms.init();
    </script>
</body>
</html>